//
//  BBDetailModel.swift
//  BBetter
//
//  Created by Gmc on 2020/3/14.
//  Copyright © 2020 Gmc. All rights reserved.
//

import UIKit

class BBDetailModel: BBDataModel {
    open var cover = ""
    open var desc:[BBDetailDescModel] = [BBDetailDescModel]()
    open var today = 0
    
    override init() {
        super.init()
    }
    
    override init(dictionary:[String:Any]) {
        super.init(dictionary: dictionary)
        self.today = dictionary["today"] as! Int
        self.cover = dictionary["cluster"] as! String
        let dictArr:[[String: Any]] = dictionary["desc"] as! [[String : Any]]
        for dict in dictArr {
            let desc = BBDetailDescModel(dictionary: dict)
            self.desc.append(desc)
        }
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
}
